package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Teacher;
import com.itheima.edu.info.manager.service.TeacherService;

import java.util.Scanner;

/*
    客服接待类:专门用来和用户打交道的类
        1.接收用户键盘录入的数据       ---用户请求
        2.找业务员完成具体的业务功能操作
        3.根据业务员的反馈结果,来给出用户相关的一个响应信息
 */
public class OtherTeacherController extends BaseTeacherController{
    private Scanner sc = new Scanner(System.in);

    //接收一个id,并让用户键盘录入老师的其他信息,封装老师对象并返回
    public Teacher inputTeacherInfo(String id) {
        System.out.println("请输入新的老师姓名:");
        String upName = sc.next();
        System.out.println("请输入新的老师年龄:");
        String upAge = sc.next();
        System.out.println("请输入新的老师生日:");
        String upBirthday = sc.next();
        //封装老师对象,让业务员完成添加老师业务
        Teacher teacher = new Teacher(id, upName, upAge, upBirthday);
        return teacher;
    }
}
